package com.ruoyi.utils;



import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class MyDateTimeUtils {

    public static String convert2DateTimeString(int seconds){
        Date dt = new Date();
        dt.setTime(seconds*1000L);
        DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        sdf.setTimeZone(TimeZone.getTimeZone("GMT+:00:00"));
        return sdf.format(dt);
    }
}
